package com.edu.fjnu.eshop.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.edu.fjnu.eshop.dao.SecondCatelogMapper;
import com.edu.fjnu.eshop.domain.SecondCatelog;
@Service("SecondCatelogService")
public class SecondCatelogServicelmpl implements SecondCatelogService {

    @Autowired
    SecondCatelogMapper secondCatelogMapper;
    
	public List<SecondCatelog> getAll() {
		// TODO Auto-generated method stub
		return secondCatelogMapper.getAll();
	}


	public void update(SecondCatelog secondCatelog) {
		// TODO Auto-generated method stub
		secondCatelogMapper.update(secondCatelog);
	}


	public List<SecondCatelog> getSecondCatelogById(int FirstCatelogId) {
		// TODO Auto-generated method stub
		return secondCatelogMapper.getSecondCatelogByFirstId(FirstCatelogId);
	}


	public void delete(int secondCatelogId) {
		// TODO Auto-generated method stub
		secondCatelogMapper.delete(secondCatelogId);
	}


	public void save(SecondCatelog secondCatelog) {
		// TODO Auto-generated method stub
		secondCatelogMapper.save(secondCatelog);
	}

}
